|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--shout3d.Shout3DApplet
Shout3DApplet
Field Summary | |
Shout3DPanel |
panel
The panel in which this applet will display its Shout3D rendering |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Shout3DApplet()
Constructs a Shout3DApplet |
Method Summary | |
void |
addJSDeviceObserver(java.lang.String typeName,
java.lang.String methodName)
Adds a DeviceObserver that will call back to the page |
void |
addJSFieldObserver(java.lang.String theNode,
java.lang.String theField,
java.lang.String methodName)
Adds a FieldObserver that will call back to the page |
void |
addJSRenderObserver(boolean onPreRender,
java.lang.String methodName)
Adds a RenderObserver that will call back to the page. |
boolean |
addRoute(Field fromField,
Field toField)
Adds a route that copies values from 'fromField' to 'toField' each time that fromField's value changes. |
void |
clearResourceCaches()
Clears the cache of loaded resources, freeing the memory that holds them. |
Node |
createNodeFromString(java.lang.String stringToParse)
Creates and returns Shout3D node by parsing the string given as an argument. |
boolean |
deleteRoute(Field fromField,
Field toField)
Removes any existing route from fromField to toField Returns true if a route existed and was removed, false otherwise Note: Routes of ArrayFields copy by reference, not by value. |
Clock |
getClock()
Gets this viewer's Clock |
java.awt.Component |
getComponent()
Returns the Java Component in which the viewer is displayed |
Bindable |
getCurrentBindableNode(java.lang.String typeName)
Returns a reference to the currently bound node of the given type. |
DeviceListener |
getDeviceListener()
Gets this viewer's DeviceListener |
Picker |
getNewPicker()
Gets a new Picker |
Searcher |
getNewSearcher()
Gets a new Searcher |
Node |
getNodeByName(java.lang.String nodeName)
Gets a Node by its DEF Name Returns null if no node is found with the given name |
java.lang.String |
getNodeSearchPath()
Returns a copy of the current node search path. |
java.lang.String |
getProfile()
Gets a string denoting the profile of the current scene. |
Renderer |
getRenderer()
Gets this viewer's Renderer |
ResourceListener |
getResourceListener()
Gets this viewer's ResourceListener |
Group |
getScene()
Gets the scene in the Viewer |
java.lang.String |
getVersion()
Gets a string denoting the version of this viewer. |
void |
init()
Applets that override this method must call super.init() within their own init() method, or the Applet will not work correctly |
void |
initShout3DPanel()
Initializes the panel. |
boolean |
isAntiAliased()
Returns whether antialiasing is enabled |
boolean |
isBilinearFiltering()
Returns whether bilinear filtering is enabled on textures |
boolean |
isLoadResourcesInSeparateThread()
Returns whether resources should are being loaded in a separate thread. |
boolean |
isPanelAutoFillsApplet()
Returns whether this applet's panel will automatically reshape itself to fill the entire size of this applet. |
boolean |
isPixelDoubling()
Returns whether pixel doubling is enabled. |
boolean |
isPixelDoublingSmooth()
Returns true if pixel doubling is enabled and the style in use is smooth style. |
boolean |
isRenderLoopPaused()
Gets whether the rendering loop is currently paused |
boolean |
isRouted(Field fromField,
Field toField)
Checks if a route currently exists from fromField to toField |
void |
loadURL(java.lang.String[] url,
Node root)
Loads an URL into the node root. |
void |
renderOnce()
This method will render one frame if the render loop is paused. |
void |
setAntiAliased(boolean newVal)
Sets whether antialiasing is enabled. |
void |
setBilinearFiltering(boolean newVal)
Sets whether bilinear filtering is enabled on textures. |
void |
setLoadResourcesInSeparateThread(boolean newVal)
Sets whether resources (textures and sounds) should be loaded in a separate thread from the main thread. |
void |
setNodeSearchPath(java.lang.String newSearchPath)
Sets the search path for finding new nodes. When loading a class for a node from a VRML97 or s3d file, the packages are searched in the order given by a path contained in a string. |
void |
setPanelAutoFillsApplet(boolean newVal)
Sets whether this applet's panel will automatically reshape itself to fill the entire size of this applet. |
void |
setPixelDoubling(boolean enabled,
boolean useSmoothStyle)
Sets whether pixel doubling is enabled on the view. |
void |
setRenderLoopPaused(boolean isPaused)
Sets whether the rendering loop should be paused |
void |
setScene(Group root)
Replaces the scene in the Viewer This includes applying all of the applet parameters (headlight, anti-aliasing, etc) to the newly loaded scene. |
void |
setSceneFromURL(java.lang.String[] url)
Loads an URL into the viewer's scene. |
void |
start()
Applets that override this method must call super.start() within their own start() method, or the Applet will not work correctly |
void |
stop()
Applets that override this method must call super.stop() within their own stop() method, or the Applet will not work correctly |
Methods inherited from class java.applet.Applet |
destroy,
getAppletContext,
getAppletInfo,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
getParameterInfo,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
disable,
dispatchEvent,
enable,
enable,
enableInputMethods,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public Shout3DPanel panel
Constructor Detail |
public Shout3DApplet()
Method Detail |
public void init()
public void start()
public void stop()
public void initShout3DPanel()
public final Renderer getRenderer()
public final Clock getClock()
public final Picker getNewPicker()
public final Searcher getNewSearcher()
public final DeviceListener getDeviceListener()
public final ResourceListener getResourceListener()
public final Node getNodeByName(java.lang.String nodeName)
public final void setNodeSearchPath(java.lang.String newSearchPath)
newSearchPath
- a String representation of the new searchPathpublic final java.lang.String getNodeSearchPath()
public final void loadURL(java.lang.String[] url, Node root) throws Shout3DException
url
- the URL to loadroot
- the scene, once loadedpublic final Node createNodeFromString(java.lang.String stringToParse) throws Shout3DException
stringToParse
- the string to parsepublic final void setSceneFromURL(java.lang.String[] url) throws Shout3DException
url
- the URL to loadpublic final void setScene(Group root)
root
- the root of the new scenepublic final Group getScene()
public final java.lang.String getProfile()
public final java.lang.String getVersion()
public final Bindable getCurrentBindableNode(java.lang.String typeName) throws Shout3DException
public final java.awt.Component getComponent()
public final boolean addRoute(Field fromField, Field toField) throws Shout3DException
fromField
- the field from which values will be copiedtoField
- the field to which values will be copiedpublic final boolean deleteRoute(Field fromField, Field toField)
fromField
- the field from which values will be copiedtoField
- the field to which values will be copiedpublic final boolean isRouted(Field fromField, Field toField)
public final void clearResourceCaches()
public final void setAntiAliased(boolean newVal)
newVal
- whether antialiasing should be enabledpublic final boolean isAntiAliased()
public final void setBilinearFiltering(boolean newVal)
newVal
- whether bilinear filtering should be enabledpublic final boolean isBilinearFiltering()
public final void setLoadResourcesInSeparateThread(boolean newVal)
newVal
- whether resources should be loaded in a separate thread.public final boolean isLoadResourcesInSeparateThread()
public final void setPanelAutoFillsApplet(boolean newVal)
newVal
- whether the autosizing will occurpublic final boolean isPanelAutoFillsApplet()
public void addJSFieldObserver(java.lang.String theNode, java.lang.String theField, java.lang.String methodName)
theNode
- the NodetheField
- the Field on the NodemethodName
- the method on the page. This method must take a string as an argumentpublic void addJSDeviceObserver(java.lang.String typeName, java.lang.String methodName)
typeName
- the type of input (i.e. "KeyboardInput")methodName
- the method on the page. This method must take an argument which will be the input class specifiedpublic void addJSRenderObserver(boolean onPreRender, java.lang.String methodName)
onPreRender
- true if the method should be called prior to rendering, false if it should be called after rendering is completed.methodName
- the method on the page. This method must take an argument which will be the input class specifiedpublic final void setRenderLoopPaused(boolean isPaused)
isPaused
- public final boolean isRenderLoopPaused()
public final void renderOnce()
public final void setPixelDoubling(boolean enabled, boolean useSmoothStyle)
enabled
- whether pixel doubling should be enableduseSmoothStyle
- if enabled is true, whether the doubling should be smooth stylepublic final boolean isPixelDoubling()
public final boolean isPixelDoublingSmooth()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |